from datetime import datetime, timedelta

# 计算时差
start = datetime(2025, 7, 12,12,13,16)
end = datetime(2025, 8, 12,12,13,3)

delta_01 = end - start
print(delta_01) # 相差的天数

delta_02 = timedelta(days = 1)
print(delta_02)
print(start + delta_02)


# 相差多少分钟
print(delta_01.total_seconds()) # 将天数转换成分钟